﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly">
  <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  <msxsl:script language="javascript" implements-prefix="user">function StrSplit(Str,splitChar,n){
    if(Str.length=0){return '1'}
    var a=Str.replace(/'/g,"").split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '1';
    return a[n];
    }
    return '1';
    }
    function numOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if(i==fV){str=str+" selected='1' "}
    var val ='';
    for(var j=i.toString().length;j&lt;fS.toString().length;j++){
    val = '0' + val;
    }
    str=str+" value='"+val+i+"'&gt;"+val+i+"&lt;/option&gt;";
    }
    return str;
    }
    </msxsl:script>
  <xsl:template match="/">
    <form id="form1" style="text-align:left;padding:5px;width:98%">
      <table width="100%" border="0" cellpadding="5" cellspacing="0" class="b_title6">
        <tr>
        <td width="50%">      <div class="b_title">
        <xsl:if test="count(rows/row)=0">
          发布产品信息
        </xsl:if>
        <xsl:if test="count(rows/row)!=0">
          编辑产品信息
        </xsl:if>
      </div></td>
          <td  align="right">提示：带 <span class="red">*</span> 为必填项&gt;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E0E0E0" class="mt5">
        <tr valign="top">
          <td class="bf6">信息类型：<span class="red">*</span></td>
          <td class="bwhite"><input name="F_InfoType" type="radio" value="1"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='1')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='1'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            产品信息
            <input type="radio" name="F_InfoType" value="2"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='2')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='2'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            加工信息
            <input type="radio" name="F_InfoType" value="3"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='3')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='1'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            代理招商信息
            <input type="radio" name="F_InfoType" value="4"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='4')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='4'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            服务信息
            <input type="radio" name="F_InfoType" value="5"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='5')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='5'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            合作信息
            <input type="radio" name="F_InfoType" value="6"><xsl:if test="count(rows/row)!=0 and (rows/row/F_InfoType='6')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:if test="count(rows/row)=0 and '{request:InfoType}'='6'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            招聘信息</td>
        </tr>
        <tr valign="top">
          <td width="165" class="bf6">供求方式：<span class="red">*</span></td>
          <td class="bwhite"><input type="radio" name="F_TradeType" value="1"><xsl:if test="rows/row/F_TradeType='1'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
              供应
              <input type="radio" name="F_TradeType" value="0"><xsl:if test="rows/row/F_TradeType='0'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
              求购
              <input type="radio" name="F_TradeType" value="2"><xsl:if test="rows/row/F_TradeType='2'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            紧急求购</td>
        </tr>
        <tr valign="top">
          <td class="bf6"> 名称：<span class="red">*</span></td>
          <td class="bwhite"><input name="F_Name" type="text" class="w200" id="F_Name" value="{rows/row/F_Name}" />
            &nbsp;&nbsp;<span class="c99">产品名称中请勿出现规格、型号、品牌等内容。</span></td>
        </tr>
        <tr valign="top">
          <td class="bf6">所属类目：<span class="red">*</span></td>
          <td class="bwhite"><div class="lh25" style="color:#339">
              <strong>您当前选择的类目</strong>：<input type="hidden" name="F_Catalog_ID" id="F_Catalog_ID" /><input name="F_Catalog_Name" id="F_Catalog_Name" type="text" style="width:50%;border:0px" readonly="readonly" value="{rows/row/F_Catalog_Name}" />
            </div>
            <select name="l3supercat" size="10" class="w200" id="l3supercat" ><xsl:attribute name="onchange">xPage.loadCatalog(xPage.$('13cat'),this);xPage.$('F_Catalog_Name').value=this.options[this.selectedIndex].text;xPage.setTagValue('F_Catalog_ID',this.value)</xsl:attribute>
              <city_list>分类目录选择</city_list>
            </select>
            <select name="13cat" size="10" class="w200" id="13cat"><xsl:attribute name="onchange">xPage.$('F_Catalog_Name').value=xPage.$('l3supercat').options[xPage.$('l3supercat').selectedIndex].text+' / '+ this.options[this.selectedIndex].text;xPage.setTagValue('F_Catalog_ID',this.value)</xsl:attribute>
            </select></td>
        </tr>
        <tr valign="top">
          <td width="165" class="bf6">信息标题：<span class="red">*</span></td>
          <td class="bwhite"><input name="F_TradeTitle" type="text" class="w200" id="F_TradeTitle" value="{rows/row/F_TradeTitle}" />
            <span class="c99">&nbsp;&nbsp;您的潜在客户首先关注信息标题，您可以在此基础上进行修改完善。 </span> </td>
        </tr>
        <tr valign="top">
          <td class="bf6">品牌：</td>
          <td class="bwhite"><input name="F_Brand" type="text" class="w200" id="F_Brand"><xsl:attribute name="value"><xsl:value-of select="rows/row/F_Brand"/></xsl:attribute></input>
          <span class="c99">&nbsp;&nbsp;建议填写一个标准的中文品牌。 </span></td>
        </tr>
        <tr valign="top">
          <td class="bf6"> 型号：</td>
          <td class="bwhite"><input name="F_Model" type="text" class="w200" id="F_Model" value="{rows/row/F_Model}" />
          <span class="c99">&nbsp;&nbsp;例: “三星笔记本X25”中的X25。 </span> </td>
        </tr>
        <tr valign="top">
          <td class="bf6"> 产品属性：&nbsp;&nbsp;</td>
          <td class="bwhite"><div class="b_title8">
              详细填写产品属性，吸引更多客户，增加成交机会。
            </div>
            <table width="100%" border="0" cellpadding="1" cellspacing="0">
              <tr>
                <td width="100" align="right"><span class="red">*</span>含量：</td>
                <td><input type="text" name="textfield35" class="w150"/>
                  ％</td>
              </tr>
              <tr>
                <td align="right">品牌：</td>
                <td><input type="text" name="textfield3" class="w200" /></td>
              </tr>
              <tr>
                <td align="right">产品规格：</td>
                <td><input type="text" name="textfield32"  class="w200" /></td>
              </tr>
              <tr>
                <td align="right">主要用途：</td>
                <td><input type="text" name="textfield33" class="w200"/></td>
              </tr>
              <tr>
                <td align="right">CAS：</td>
                <td><input type="text" name="textfield34" class="w200"/></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top">
          <td class="bf6">详细说明：&nbsp;&nbsp;</td>
          <td class="bwhite"><div class="b_title8">
              1、建议您参考以下方面描述加工的要求：加工的工艺、流程、材料、包装等。 <br />
              2、为避免不必要的纠纷，请使用本企业图片，勿盗用他人图片；<br />
              3、可添加机械网内部，加入其他网站链接，系统将自动删除。
            </div>
            <div class="mt5">
              <img src="/images/jx/pic_temp.gif" />
            </div>
            <div>
              <textarea name="F_TradeContent" cols="" rows="15" class="w550" id="F_TradeContent" onfocus="if(this.value=='&nbsp;')this.value=''"><xsl:value-of select="rows/row/F_TradeContent"/><xsl:if test="rows/row/F_TradeContent=''">&nbsp;</xsl:if></textarea>
            </div></td>
        </tr>
        <tr valign="top">
          <td class="bf6">上传图片：&nbsp;&nbsp;</td>
          <td class="bwhite"><table width="500" border="0" cellpadding="3" cellspacing="0" class="mb5">
            <tr>
              <td width="33%" align="center">图片1</td>
              <td width="33%" align="center">图片2 </td>
              <td width="33%" align="center">图片3</td>
            </tr>
            <tr>
              <td align="center"><img width="100" height="100" id="img1" ><xsl:attribute name="src"><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',0),1,6)='/files'"><xsl:value-of select="user:StrSplit(string(rows/row/F_Images),'|',0)"/></xsl:if><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',0),1,6)!='/files'">/images/jx/detail_no_pic.gif</xsl:if></xsl:attribute></img></td>
              <td align="center"><img alt="" width="100" height="100" id="img2" ><xsl:attribute name="src"><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',1),1,6)='/files'"><xsl:value-of select="user:StrSplit(string(rows/row/F_Images),'|',1)"/></xsl:if><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',1),1,6)!='/files'">/images/jx/detail_no_pic.gif</xsl:if></xsl:attribute></img></td>
              <td align="center"><img alt="" width="100" height="100" id="img3" ><xsl:attribute name="src"><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',2),1,6)='/files'"><xsl:value-of select="user:StrSplit(string(rows/row/F_Images),'|',2)"/></xsl:if><xsl:if test="substring(user:StrSplit(string(rows/row/F_Images),'|',2),1,6)!='/files'">/images/jx/detail_no_pic.gif</xsl:if></xsl:attribute></img></td>
            </tr>
            <tr>
              <td align="center"><label>
                <input type="button" name="button" id="button" class="ok1" value="上传" onclick="xPage.dialogImgList('img1','F_Image1');" />
                <input class="ok1" type="button" name="button4" id="button4" value="取消" onclick="xPage.cleanTagValue('img1','F_Image1')" /><input name="F_Image1" type="hidden" id="F_Image1" value="{user:StrSplit(string(rows/row/F_Images),'|',0)}" />
              </label></td>
              <td align="center"><input type="button" name="button5" id="button2" class="ok1" value="上传" onclick="xPage.dialogImgList('img2','F_Image2');" />
                <input class="ok1" type="button" name="button2" id="button5" value="取消" onclick="xPage.cleanTagValue('img2','F_Image2')"/>
                <input name="F_Image2" type="hidden" id="F_Image2" value="{user:StrSplit(string(rows/row/F_Images),'|',1)}" /></td>
              <td align="center"><input type="button" name="button6" id="button3" class="ok1" value="上传" onclick="xPage.dialogImgList('img3','F_Image3');" />
                <input class="ok1" type="button" name="button3" id="button6" value="取消" onclick="xPage.cleanTagValue('img3','F_Image3')"/>
                <input name="F_Image3" type="hidden" id="F_Image3" value="{user:StrSplit(string(rows/row/F_Images),'|',2)}" /></td>
            </tr>
          </table></td>
        </tr>
        <tr valign="top">
          <td class="bf6"><img src="/images/jx/icon_right_19x19.gif" width="19" height="16" /> 信息有效期：<span class="red">*</span></td>
          <td class="bwhite"><input type="radio" value="10" name="F_ValidDays"><xsl:if test="rows/row/F_ValidDays='10'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            10天
            <input name="F_ValidDays"  type="radio" value="20"><xsl:if test="rows/row/F_ValidDays='20'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            20天
            <input name="F_ValidDays" type="radio" value="30"><xsl:if test="rows/row/F_ValidDays='30'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            1个月
            <input name="F_ValidDays"  type="radio" value="90"><xsl:if test="rows/row/F_ValidDays='90'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            3个月
            <input name="F_ValidDays"  type="radio" value="180"><xsl:if test="rows/row/F_ValidDays='180'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>
            6个月 </td>
        </tr>
      </table>
      <div class="b_title1" style="margin-top:20px">
        交易条件
      </div>
      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E0E0E0" >
        <tr valign="top">
          <td width="165" class="bf6"><strong>计量单位</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"><input name="F_Unit" type="text" class="w200" id="F_Unit" value="{rows/row/F_Unit}" /></td>
        </tr>
        <tr valign="top">
          <td class="bf6"><strong>产品单价</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"><input name="F_Price" type="text" class="w200" id="F_Price" value="{rows/row/F_Price}" />
            元/<span id="trade_unit_price">单位</span> </td>
        </tr>
        <tr valign="top">
          <td class="bf6"><strong>最小起订量</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"><input name="F_MinOrder" type="text" class="w200" id="F_MinOrder" value="{rows/row/F_MinOrder}" />
              <span id="trade_unit_beginamount">单位</span></td>
        </tr>
        <tr valign="top">
          <td class="bf6"><strong>供货总量</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"><input name="F_OrderAmount" type="text" class="w200" id="F_OrderAmount" value="{rows/row/F_OrderAmount}" />
              <span id="trade_unit_beginamount2">单位</span></td>
        </tr>
        <tr valign="top">
          <td class="bf6"><strong>发货期限</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"> 自买家付款之日起
            <label>
              <select name="F_SendValidDays" id="F_SendValidDays">
                <option value="">请选择</option>
                <xsl:value-of select="user:numOptions(1,60,string(rows/row/F_SendValidDays))" disable-output-escaping="yes"/>
             </select>
              天内发货 </label></td>
        </tr>
        <tr valign="top">
          <td class="bf6"><strong>供应商类型</strong>：&nbsp;&nbsp;</td>
          <td class="bwhite"> 我是该产品的
            <label>
              <select name="F_SupplyType" id="F_SupplyType">
                <option value="">请选择</option>
                <option value="0" ><xsl:if test="rows/row/F_SupplyType='0'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>自主生产厂商</option>
                <option value="1" ><xsl:if test="rows/row/F_SupplyType='1'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>加工商</option>
                <option value="2" ><xsl:if test="rows/row/F_SupplyType='2'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>代理商</option>
                <option value="3" ><xsl:if test="rows/row/F_SupplyType='3'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>经销商</option>
                <option value="4" ><xsl:if test="rows/row/F_SupplyType='4'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>其他</option>
              </select>
            </label></td>
        </tr>
      </table>
      <div class="mt20">
        <input type="button" name="Submit" onclick="if(saveContentCmd(this,form1,'@管理供求信息'))editListPt(1,'供求列表','id='+CurID.value)" value="确认保存" class="ok2"/><input type="button" name="Submit" onclick="editListPt(editCPage,'供求列表','id='+CurID.value)" value="取消返回" class="ok2"/><input name="editID" type="hidden"><xsl:attribute name="value"><xsl:if test="count(rows/row)=0">0</xsl:if><xsl:if test="count(rows/row)!=0"><xsl:value-of select="rows/row/ID"/></xsl:if></xsl:attribute></input>
        <input name="F_Company_ID" type="hidden" id="F_Company_ID" value="{rows/row/F_Company_ID}" />
      </div>
    </form>
  </xsl:template>
</xsl:stylesheet>
